home *** CD-ROM | disk | FTP | other *** search
/ Aminet 38 / Aminet 38 (2000)(Schatztruhe)[!][Aug 2000].iso / Aminet / dev / c / BestRandom.lha / BestRandom / BestRandom.readme next >
Encoding:
Text File  |  2000-05-30  |  1.7 KB  |  44 lines

  1. Short: Best Random Number Generator (PPC+68k)
  2. Type: dev/c
  3. Uploader: info@ar-kleinert.de
  4. Author: George Masaglia, Arif Zaman, David LaSalle, Jim Butler
  5.  
  6.  *************************************************************************
  7.  
  8.  This random number generator originally appeared in "Toward a Universal
  9.  Random Number Generator" by George Marsaglia and Arif Zaman.
  10.  Florida State University Report: FSU-SCRI-87-50 (1987)
  11.  
  12.  It was later modified by F. James and published in "A Review of Pseudo-
  13.  random Number Generators"
  14.  
  15.  THIS IS THE BEST KNOWN RANDOM NUMBER GENERATOR AVAILABLE.
  16.        (However, a newly discovered technique can yield
  17.          a period of 10^600. But that is still in the development stage.)
  18.  
  19.  It passes ALL of the tests for random number generators and has a period
  20.    of 2^144, is completely portable (gives bit identical results on all
  21.    machines with at least 24-bit mantissas in the floating point
  22.    representation).
  23.  
  24.  The algorithm is a combination of a Fibonacci sequence (with lags of 97
  25.    and 33, and operation "subtraction plus one, modulo one") and an
  26.    "arithmetic sequence" (using subtraction).
  27.  ========================================================================
  28.  This C language version was written by Jim Butler, and was based on a
  29.  FORTRAN program posted by David LaSalle of Florida State University.
  30.  
  31.  *************************************************************************
  32.  
  33.  The Amiga 68k/PPC version comes with both, makefiles for 68k and PPC,
  34.  and test programs for both CPUs.
  35.  
  36.  If the random number generator is working properly, the random numbers
  37.  as printed by the test program(s):
  38.  
  39.            6533892.0  14220222.0  7275067.0
  40.            6172232.0  8354498.0   10633180.0
  41.  
  42.  --
  43.  ARK, 30/May/2000
  44.